home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume16 / pcomm2 / part01 next >
Encoding:
Internet Message Format  |  1988-09-14  |  55.9 KB

  1. Path: bbn.com!rsalz
  2. From: rsalz@uunet.uu.net (Rich Salz)
  3. Newsgroups: comp.sources.unix
  4. Subject: v16i006:  Modem communications package, Part01/08
  5. Message-ID: <1058@fig.bbn.com>
  6. Date: 13 Sep 88 16:38:30 GMT
  7. Lines: 1489
  8. Approved: rsalz@uunet.UU.NET
  9.  
  10. Submitted-by: Emmet P Gray <fthood!egray>
  11. Posting-number: Volume 16, Issue 6
  12. Archive-name: pcomm2/part01
  13.  
  14. Subject: Pcomm v1.1 (1 of 8)
  15.  
  16. This is part 1 (of 8) to the Pcomm v1.1 release package.
  17.  
  18. Pcomm is a public domain telecommunication program for Unix designed
  19. to operate similar to the MSDOS program, ProComm.  ProComm (TM) is
  20. copyrighted by Datastorm Technologies, Inc.
  21.  
  22. This is the second release of Pcomm.... the v1.0 release appeared
  23. in comp.sources.unix many months ago. There is a file called
  24. Release.notes that describes the changes from the first release.
  25.  
  26. Emmet P. Gray                US Army, HQ III Corps & Fort Hood
  27. ..!uunet!uiucuxc!fthood!egray        Attn: AFZF-DE-ENV
  28.                     DEH, Environmental Management Office
  29.                     Fort Hood, TX 76544-5057
  30.  
  31. ------------------------------------------------------------------------------
  32. #! /bin/sh
  33. # This is a shell archive, meaning:
  34. # 1. Remove everything above the #! /bin/sh line.
  35. # 2. Save the resulting text in a file.
  36. # 3. Execute the file with /bin/sh (not csh) to create:
  37. #    Doc
  38. export PATH; PATH=/bin:/usr/bin:$PATH
  39. echo shar: Some backspaces and formfeeds may be lost...
  40. echo shar: "extracting 'Doc'" '(53982 characters)'
  41. if test -f 'Doc'
  42. then
  43.     echo shar: "will not over-write existing file 'Doc'"
  44. else
  45. sed 's/^X//' << \SHAR_EOF > 'Doc'
  46. X
  47. X
  48. X
  49. X
  50. X
  51. X
  52. X
  53. X
  54. X
  55. X
  56. X          PPPPPP    CCCC    OOOO    MM   MM   MM   MM
  57. X          P    P   C       O    O   M M M M   M M M M
  58. X          PPPPPP   C       O    O   M  M  M   M  M  M
  59. X          P        C       O    O   M     M   M     M
  60. X          P         CCCC    OOOO    M     M   M     M
  61. X
  62. X
  63. X
  64. X
  65. X
  66. X
  67. X
  68. X
  69. X                Pcomm Reference Manual
  70. X
  71. X                  version 1.1
  72. X
  73. X
  74. X
  75. X
  76. X                  written by
  77. X
  78. X                 Emmet P. Gray
  79. X            ...!uunet!uiucuxc!fthood!egray
  80. X
  81. X
  82. X
  83. X
  84. X
  85. X
  86. X        Pcomm is a public domain telecommunication program for Unix that
  87. X        is  designed  to  operate similar to the MSDOS program, ProComm.
  88. X        ProComm (TM) is  copyrighted  by  Datastorm  Technologies,  Inc.
  89. X        This  is a completely new program and contains no ProComm source
  90. X        code.  This is not a Datastorm product.
  91. X
  92. X
  93. X
  94. X                   Table of Contents
  95. X
  96. X
  97. X
  98. X
  99. X    1. INTRODUCTION .......... 3       5. UTILITY FUNCTIONS ..... 20
  100. X    1.1 Abbreviations ........ 3       5.1 Program information .. 20
  101. X    1.2 Requirements ......... 3       5.2 Setup screen ......... 20
  102. X    1.3 Support files ........ 4       5.3 Change directory ..... 20
  103. X                       5.4 Clear screen ......... 20
  104. X    2. RUNNING PCOMM ......... 5       5.5 Toggle duplex ........ 20
  105. X    2.1 Hot key .............. 5       5.6 Hang up the phone .... 20
  106. X    2.2 Status line .......... 5       5.7 Printer logging ...... 21
  107. X    2.3 Help screen .......... 6       5.8 Toggle CR - CR/LF .... 21
  108. X    2.4 Exit Pcomm ........... 6       5.9 Break ................ 21
  109. X
  110. X    3. SETUP SCREENS ......... 7       6. FILE FUNCTIONS ........ 22
  111. X    3.1 Prompting ............ 7       6.1 Send files ........... 22
  112. X    3.2 TTY setup ............ 8       6.2 Receive files ........ 23
  113. X    3.3 Modem setup .......... 9       6.3 Pass thru mode ....... 24
  114. X    3.4 Terminal setup ....... 10      6.4 Directory ............ 24
  115. X    3.5 General setup ........ 11      6.5 Screen dump .......... 25
  116. X    3.6 ASCII transfer setup . 12      6.6 Start data logging ... 25
  117. X                       6.7 Toggle logging ....... 25
  118. X    4. MAJOR FUNCTIONS ....... 15
  119. X    4.1 Dialing directory .... 15      7. DIALING WINDOW ........ 26
  120. X    4.2 Redial ............... 17
  121. X    4.3 Keyboard macros ...... 17
  122. X    4.4 Line settings ........ 18
  123. X    4.5 Exit Pcomm ........... 19
  124. X    4.6 Unix gateway ......... 19
  125. X
  126. X
  127. X
  128. X
  129. X
  130. X
  131. X          Appendix A - Typical Modem Configuration ...... 27
  132. X          Appendix B - AT&T Unix PC 7300/3b1 Dial Codes . 28
  133. X          Appendix C - Using Telebit Trailblazers ....... 30
  134. X
  135. X    1. INTRODUCTION
  136. X
  137. X    Pcomm is a public domain, menu driven, telecommunication program
  138. X    designed  to  provide the same "ease of use" as similar programs
  139. X    available in MSDOS.  Some of its features are:
  140. X
  141. X        +o Large dialing directory
  142. X        +o Automatic redial feature
  143. X        +o Supports popular file transfer protocols
  144. X        +o Data logging (log of the terminal session)
  145. X        +o Printer logging
  146. X        +o Screen dump
  147. X        +o Shell escapes
  148. X        +o Help screen
  149. X        +o Keyboard macros
  150. X        +o User customization
  151. X        +o Administrative logging of phone calls
  152. X        +o Administrative limits on long distance access
  153. X
  154. X    Pcomm  does  not  emulate  any  particular  terminal.   Whatever
  155. X    terminal you're on, is what the remote system "sees".
  156. X
  157. X    1.1 Abbreviations
  158. X
  159. X    Pcomm uses the notation "^A-X" to mean control-A followed by the
  160. X    letter  X.  The dash (-) in the notation is just for clarity, it
  161. X    is not included in the actual command sequence.  Also, there  is
  162. X    no distinction between upper and lower case letters.
  163. X
  164. X    The following abbreviations appear in Pcomm:
  165. X
  166. X        <CR>    carriage return key (sometimes labled "Enter")
  167. X        <ESC>    escape key
  168. X        <SPACE>    space bar
  169. X        <DEL>    del key
  170. X        <up>    up arrow key
  171. X        <down>    down arrow key
  172. X        LF    line feed character (control-J)
  173. X        CR    carriage return character (control-M)
  174. X
  175. X    1.2 Requirements
  176. X
  177. X    Pcomm will not run on terminals with a screen size of less  than
  178. X    80 columns by 24 lines or on terminals that lack cursor movement
  179. X    capabilities.  For terminals without arrow keys, use the  letter
  180. X    "U"  in place of "up arrow" and the letter "N" in place of "down
  181. X    arrow" (the letter "D" would have been a  more  obvious  choice,
  182. X    but, unfortunately, it is used elsewhere).
  183. X
  184. X    1.3 Support files
  185. X
  186. X    Pcomm uses three support files, namely:
  187. X
  188. X        pcomm.dial_dir    the dialing directory
  189. X        pcomm.modem    the modem/TTY database
  190. X        pcomm.param    the start-up default parameters
  191. X
  192. X    There is a default directory (typically  "/usr/local/lib/pcomm")
  193. X    where the "standard" support files live.  Since the average user
  194. X    won't have write permission on these files,  it's  assumed  that
  195. X    they  will copy one or more of these standard files to their own
  196. X    directories and edit them to suit their needs.
  197. X
  198. X    Pcomm can use the environmental variable "PCOMM" to  search  for
  199. X    these  "private"  support  files.   If  used,  the variable must
  200. X    contain the path to the directory containing the files.  You can
  201. X    "mix  and  match" the use of standard and private support files.
  202. X    For example, the pcomm.modem file is rarely changed by the  user
  203. X    so  there  would  be  no  need  to copy that file to the private
  204. X    directory.
  205. X
  206. X    The following directories  are  searched  to  find  the  support
  207. X    files:
  208. X
  209. X        +o directory given with the "-d" option
  210. X        +o directory in the PCOMM environmental variable
  211. X        +o the current working directory
  212. X        +o the default directory (compiled into Pcomm)
  213. X
  214. X    2. RUNNING PCOMM
  215. X
  216. X    Pcomm has the following command line syntax.
  217. X
  218. X        pcomm [-d directory] [-f index]
  219. X
  220. X    The "-d" option allows you to specify an additional path  to  be
  221. X    used when searching for the Pcomm support files.  This option is
  222. X    often useful for "borrowing" someone else's dialing directory.
  223. X
  224. X    The "-f" option is used to specify automatic dialing of an entry
  225. X    in  the  dialing  directory.   The  "index" field in the dialing
  226. X    directory (described later) is checked against the string  given
  227. X    on  the  command  line.   If  a  match  is  found, that entry is
  228. X    automatically dialed.
  229. X
  230. X    2.1 Hot key
  231. X
  232. X    Pcomm uses a "hot key" to precede each command.  (The  value  of
  233. X    the  hot key is a user tunable parameter, but for the purpose of
  234. X    this document we'll assume the hot key is defined as control-A).
  235. X
  236. X    The hot key is used to put  Pcomm  in  the  command  mode.   For
  237. X    example,  to  get the help screen, you type control-A (to get to
  238. X    the command mode)  then  the  number  0  (to  display  the  help
  239. X    screen).   When  a  command  is  completed, Pcomm returns to the
  240. X    terminal mode.
  241. X
  242. X    NOTE:  While in the command mode,  the  communication  with  the
  243. X    remote system is temporarily suspended.
  244. X
  245. X    2.2 Status line
  246. X
  247. X    Whenever Pcomm is in the  command  mode  (or  is  not  currently
  248. X    connected  to a remote) a status line is displayed at the bottom
  249. X    of the screen.  A typical status line might look like this:
  250. X
  251. X    +----------------------------------------------------------------------+
  252. X    | ^A-0 HELP  | No TTY | FDX | 1200 E71 | LOG OFF | PTR OFF | CR  | CR  |
  253. X    +----------------------------------------------------------------------+
  254. X
  255. X    The eight fields of the status line are:
  256. X
  257. X        +o help screen command (or a temporary message)
  258. X        +o name of the TTY device in use
  259. X        +o duplex mode (FDX = full duplex, HDX = half duplex)
  260. X        +o current line settings
  261. X        +o status of data logging option
  262. X        +o status of printer logging option
  263. X        +o incoming CR translation
  264. X        +o outgoing CR translation
  265. X
  266. X    2.3 Help screen
  267. X
  268. X    The help screen gives  a  brief  review  of  all  the  available
  269. X    commands.   To  access  the  help screen type ^A and "0" (zero).
  270. X    The typical help screen will look like this:
  271. X
  272. X  +---------------------------------------------------------------------------+
  273. X  |                           P C O M M     H E L P                           |
  274. X  |---------------------------------------------------------------------------|
  275. X  |                                                                           |
  276. X  |      Major Functions        Utility Functions        File Functions       |
  277. X  |                                                                           |
  278. X  | Dialing Directory. ^A-D  Program Info .... ^A-I  Send Files .... ^A-<up>  |
  279. X  | Auto Redial ...... ^A-R  Setup Screen .... ^A-S  Receive Files . ^A-<down>|
  280. X  | Keyboard Macros .. ^A-M  Change Directory. ^A-B  Pass Thru Mode. ^A-T     |
  281. X  | Line Settings .... ^A-P  Clear Screen .... ^A-C  Directory ..... ^A-F     |
  282. X  | Exit Pcomm ....... ^A-X  Toggle Duplex ... ^A-E  Screen Dump ....^A-G     |
  283. X  | Unix Gateway ..... ^A-4  Hang Up Phone ... ^A-H  Start Data Log. ^A-1     |
  284. X  |                          Printer On/Off .. ^A-L  Toggle Log .... ^A-2     |
  285. X  |                          Toggle CR-CR/LF . ^A-3                           |
  286. X  |                          Break Key ....... ^A-7                           |
  287. X  |                                                                           |
  288. X  +------------------------ Press any key to continue ------------------------+
  289. X
  290. X    2.4 Exit Pcomm
  291. X
  292. X    To exit Pcomm, you type ^A and "x" to access the exit window.
  293. X
  294. X    +-- Exit -----------------------+
  295. X    |                               |
  296. X    |   Exit to Unix? (y/n): _      |
  297. X    |                               |
  298. X    +-------------------------------+
  299. X
  300. X    To exit, you press the letter "y" (carriage return not required).
  301. X
  302. X    3. SETUP SCREENS
  303. X
  304. X    Pcomm allows you to change many of the default parameters.   The
  305. X    setup  screen  is  accessed by typing ^A and "s".  The following
  306. X    screen is typical and shows the sub-menu choices:
  307. X
  308. X    ------------------------ Setup Menu ----------------------------
  309. X
  310. X                1) TTY Setup
  311. X                2) Modem Setup
  312. X                3) Terminal Setup
  313. X                4) General Setup
  314. X                5) ASCII Transfer Setup
  315. X                S) Save setup to disk
  316. X
  317. X    ----------------------------------------------------------------
  318. X    OPTION ==> _                                 Press <ESC> to exit
  319. X
  320. X    To select one of the sub-menu choices, you type the  number  (or
  321. X    letter) at the "OPTION ==>" prompt.  To exit from a sub-menu and
  322. X    return to this setup menu screen, you press the escape key.
  323. X
  324. X    Changes made affect the current Pcomm session only.  To make the
  325. X    changes become the default, you select the "s" option.
  326. X
  327. X    3.1 Prompting
  328. X
  329. X    There are several different types of prompts used in  the  setup
  330. X    screens.   The  prompts  use the bottom two lines on the display
  331. X    for user input and to give more information  on  what  is  being
  332. X    asked.   Pcomm  will  beep at any illegal input.  The escape key
  333. X    <ESC> will abort any prompt.  The prompt types are:
  334. X
  335. X        +o  Character  prompt.   Asks  you  to  input  a   single
  336. X        character.
  337. X
  338. X        +o String prompt.  Asks you to input a word or  group  of
  339. X        characters.
  340. X
  341. X        +o Numeric prompt.  Asks you for a number.
  342. X
  343. X        +o Menu prompt.  Shows  a  selection and  allows  you  to
  344. X        choose  the  current  selection by pressing the carriage
  345. X        return or change the selection  by  pressing  the  space
  346. X        bar.
  347. X
  348. X    3.2 TTY setup
  349. X
  350. X    The TTY setup allows you to assign the serial ports  that  Pcomm
  351. X    is allowed to use, and what is attached to each port.  A typical
  352. X    TTY setup screen might look like this:
  353. X
  354. X    -------------------------- TTY Setup ---------------------------
  355. X
  356. X         TTY name        Modem name      Init speed
  357. X
  358. X         1) tty10        HAYES               0
  359. X         2) tty11        HAYES               0
  360. X         3) tty12        DIRECT              0
  361. X         4) tty13        TELEBIT             0
  362. X         5) tty13        FAST_TELEBIT        0
  363. X         6)                                  0
  364. X         7)                                  0
  365. X         8)                                  0
  366. X         9)                                  0
  367. X        10)                                  0
  368. X
  369. X        11) Add a TTY entry
  370. X        12) Delete a TTY entry
  371. X
  372. X    ----------------------------------------------------------------
  373. X    OPTION ==> _                               Press <ESC> to return
  374. X
  375. X    You may edit an entry by typing the entry number at the  prompt.
  376. X    To add an entry, you type "11" at the prompt, etc.
  377. X
  378. X    The TTY setup fields are:
  379. X
  380. X        1) TTY name.  This is the name of the serial  port  that
  381. X        Pcomm  will  be  allowed  to  use.  Notice that the path
  382. X        component of the name, "/dev/" is not used.
  383. X
  384. X        2) Modem name.  This a key word that is  used  later  to
  385. X        link the modem database with the TTY database.  The name
  386. X        could be any combination of  letters  or  numbers  (both
  387. X        upper and lower case).
  388. X
  389. X    NOTE:  All hard-wired  ports  (ports  without  modems  attached)
  390. X    *must* use the word "DIRECT" for the modem name.
  391. X
  392. X        3) Init speed.  Normally Pcomm will initialize the modem
  393. X        at  the baud rate in the dialing directory.  If the init
  394. X        speed is non-zero, the initialization string  is  always
  395. X        sent  at  the  specified  baud  rate.   The baud rate is
  396. X        selected from a "menu prompt".  See Appendix C  for more
  397. X        information about the use of this feature.
  398. X
  399. X    NOTE:  It is often best to put the fastest modem/TTYs at the end
  400. X    of the TTY database.
  401. X
  402. X    3.3 Modem setup
  403. X
  404. X    The modem setup contains the commands to make  the  modem  dial,
  405. X    hang up the phone, etc.  A typical modem setup screen might look
  406. X    like this:
  407. X
  408. X    -------------------------- Modem Setup -------------------------
  409. X
  410. X         1) Modem name (1 of 4) ... HAYES
  411. X         2) Modem init string ..... ATS7=45S11=70E0Q0V1X4&D2!
  412. X         3) Dialing command ....... ATDT
  413. X         4) Dialing cmd suffix .... !
  414. X         5) Hang up string ........ ~~+++~~ATH0!
  415. X         6) Auto baud detect ...... Y
  416. X         7) 300 baud connect ...... CONNECT!
  417. X         8) 1200 baud connect ..... CONNECT 1200
  418. X         9) 2400 baud connect ..... CONNECT 2400
  419. X        10) 4800 baud connect .....
  420. X        11) 9600 baud connect .....
  421. X        12) 19200 baud connect ....
  422. X        13) No connect string 1 ... BUSY
  423. X        14) No connect string 2 ... VOICE
  424. X        15) No connect string 3 ... NO CARRIER
  425. X        16) No connect string 4 ...
  426. X
  427. X    ----------------------------------------------------------------
  428. X    OPTION ==> _                               Press <ESC> to return
  429. X
  430. X    The fields of the modem setup are:
  431. X
  432. X        1) Modem name.  This is the  key  word  that  links  the
  433. X        modem  database with the TTY database.  A menu prompt is
  434. X        used  to  select  the  modem  name  (and  the  remaining
  435. X        parameters  that  go  with  it).   The  "(1 of 4)" field
  436. X        indicates there are additional modems in the database.
  437. X
  438. X        2) Modem initialization string.  This  is  sent  to  the
  439. X        modem whenever the port is selected.  Consult your modem
  440. X        manual for the codes to be used.  Notice the use of  the
  441. X        "!"  character.  This is the "character synonym" for the
  442. X        carriage return.
  443. X
  444. X    NOTE:  See section  3.5  for  the  complete  list  of  character
  445. X    synonyms.  To remove the special meaning of a character synonym,
  446. X    you must prepend a "\" to the character.
  447. X
  448. X        3) Dialing command.  The first part of  the  command  to
  449. X        make  the  modem  dial.   It  is  assumed that the phone
  450. X        number will immediately follow.
  451. X
  452. X        4) Dialing command suffix.  The last part of the command
  453. X        to  make  the  modem  dial.   Typically this will be the
  454. X        carriage return "character synonym".
  455. X
  456. X        5) Hang up string.  The command to make the  modem  hang
  457. X        up  the  phone.   The  character  synonym for a 1 second
  458. X        pause is the tilde "~" character.
  459. X
  460. X        6) Auto baud detect.  Should Pcomm attempt to change the
  461. X        baud  rate  of  the  TTY  to  the baud rate matching the
  462. X        connect  string?   This  feature  requires  the  connect
  463. X        strings to be unique.
  464. X
  465. X        7-12) Connect strings.  The  return  messages  when  the
  466. X        modem   has  connected  to  the  remote.   If  different
  467. X        messages are returned for each baud rate  at  which  the
  468. X        modem answers, then they should be specified.
  469. X
  470. X    NOTE:  Pcomm uses the connect strings to  determine  which  baud
  471. X    rates  the  modem is capable of supporting.  For example, if the
  472. X    4800 baud connect string  is  empty,  Pcomm  assumes  the  modem
  473. X    can not support 4800 baud.
  474. X
  475. X    NOTE:  If two connect strings are very  similar,  (for  example,
  476. X    "CONNECT"  is  entirely  contained  in  "CONNECT  1200"),  it is
  477. X    possible that the return code from  the  modem  will  match  the
  478. X    incorrect  string.   To  prevent  this  from  happening, use the
  479. X    command synonym for the carriage return to terminate the shorter
  480. X    string (for example, use "CONNECT!" instead of "CONNECT").
  481. X
  482. X        13-16) No connect strings.  The messages returned by the
  483. X        modem when no connection is made.
  484. X
  485. X    3.4 Terminal setup
  486. X
  487. X    The terminal setup allows you to define  the  hot  key  and  the
  488. X    mapping of the end-of-line characters.  A typical terminal setup
  489. X    menu will look like this:
  490. X
  491. X    ---------------------- Terminal Setup --------------------------
  492. X
  493. X            1) Hot key (decimal) ...... 1
  494. X            2) ASCII version of hot ... ^A
  495. X
  496. X            3) Duplex ................. FULL
  497. X            4) Flow control ........... XON/XOFF
  498. X            5) CR translation (in) .... CR
  499. X            6) CR translation (out) ... CR
  500. X
  501. X    ----------------------------------------------------------------
  502. X    OPTION ==> _                               Press <ESC> to return
  503. X
  504. X    The fields in the terminal setup are:
  505. X
  506. X        1) Hot key.  This is  the  decimal  code  for  the  user
  507. X        definable  hot key.  Consult an ASCII/decimal conversion
  508. X        chart for the decimal values of other characters.
  509. X
  510. X        2) ASCII version of hot  key.   This  is  the  printable
  511. X        version  of the hot key used by Pcomm in the help screen
  512. X        and status line.
  513. X
  514. X        3) Duplex.  A menu prompt is  shown  to  select  between
  515. X        FULL  duplex  and HALF duplex.  In the half duplex mode,
  516. X        characters sent to the remote system are  also  sent  to
  517. X        the  the  screen.   (The duplex mode can also be changed
  518. X        "on the fly" by the ^A-E command.)
  519. X
  520. X        4) Flow control.  A  menu  prompt  is  shown  to  select
  521. X        between  XON/XOFF  flow  control  and  NONE.   The  flow
  522. X        control selected here is only used during  the  terminal
  523. X        session, not during file transfers.
  524. X
  525. X        5-6) CR translations.  The  end-of-line  characters  for
  526. X        both  incoming  and  outgoing  carriage  returns  can be
  527. X        altered to suit  the  remote  system's  needs.   A  menu
  528. X        prompt provides the following choices:
  529. X
  530. X            +o CR (no translation)
  531. X            +o CR/LF translate CR to CR/LF
  532. X
  533. X        The incoming CR translation can also be changed "on  the
  534. X        fly" with the ^A-3 command.
  535. X
  536. X    3.5 General setup
  537. X
  538. X    The general setup allows you to define  the  character  synonyms
  539. X    and  the  default  files  used  by  the  screen  dump  and other
  540. X    features.  A typical general setup screen might look like this:
  541. X
  542. X    ------------------------- General Setup ------------------------
  543. X
  544. X             1) Default log file ....... pcomm.log
  545. X             2) Screen dump file ....... pcomm.dump
  546. X
  547. X             3) Strip high bit  ........ YES
  548. X
  549. X             4) Pause character ........ ~
  550. X             5) CR character ........... !
  551. X             6) CTRL character ......... ^
  552. X             7) ESC character .......... |
  553. X             8) Break character ........ %
  554. X
  555. X             9) Aborted downloads ...... KEEP
  556. X
  557. X            10) Connect delay (sec) .... 35
  558. X            11) Redial delay (sec) ..... 5
  559. X
  560. X    ----------------------------------------------------------------
  561. X    OPTION ==> _                               Press <ESC> to return
  562. X
  563. X    The general setup fields are:
  564. X
  565. X        1) Default log file.  The file name to be  used  as  the
  566. X        default  when the data logging is activated (^A-1).  The
  567. X        log file name can be changed "on the fly"  by  the  ^A-1
  568. X        command.
  569. X
  570. X        2) Screen dump file.  The file name to be used  for  the
  571. X        screen dump command (^A-G).
  572. X
  573. X        3) Strip high bit.  Should Pcomm strip the eighth bit on
  574. X        incoming and outgoing characters?  A menu prompts allows
  575. X        you  to  select  YES  or  NO.   This feature is not used
  576. X        during file transfers.
  577. X
  578. X        4-8) Character synonyms.  These are symbols  that  Pcomm
  579. X        uses to represent special characters (or perform special
  580. X        functions) when sending commands to the modem.  Synonyms
  581. X        are   useful   for   entering   and  displaying  special
  582. X        characters in a human readable form.  The synonyms are:
  583. X
  584. X            +o Pause for 1 second
  585. X            +o The carriage return character (control-M)
  586. X            +o Convert the next character to control-xx
  587. X            +o The escape character (control-[)
  588. X            +o Send a modem break
  589. X
  590. X    NOTE:  To prevent the special meaning of one of these characters
  591. X    prepend a "\" to it.
  592. X
  593. X        9) Aborted downloads.  When a download  aborts  (fails),
  594. X        should  the  partially completed file be kept?  The menu
  595. X        prompt allows "KEEP" or "DELETE".
  596. X
  597. X        10) Connect delay.  The number  of  seconds  Pcomm  will
  598. X        wait for the modem to return a status code.
  599. X
  600. X        11) Redial delay.  The number of seconds to wait  before
  601. X        Pcomm tries to call the number again.
  602. X
  603. X    3.6 ASCII transfer setup
  604. X
  605. X    This setup screen allows you to select options to  be  used  for
  606. X    ASCII  uploads  and  downloads.   A typical ASCII transfer setup
  607. X    will look like this:
  608. X
  609. X    ---------------------- ASCII Transfer Setup --------------------
  610. X
  611. X                  ASCII UPLOAD
  612. X
  613. X            1) Echo locally ........... NO
  614. X            2) Expand blank lines ..... NO
  615. X            3) CR delay (ms) .......... 0
  616. X            4) Pace the output ........ NO
  617. X            5) CR translation ......... NONE
  618. X            6) LF translation ......... ADD CR
  619. X
  620. X                 ASCII DOWNLOAD
  621. X
  622. X            7) Transfer timeout (sec) . 5
  623. X            8) CR translation ......... STRIP
  624. X            9) LF translation ......... NONE
  625. X
  626. X    ----------------------------------------------------------------
  627. X    OPTION ==> _                               Press <ESC> to return
  628. X
  629. X    The fields are:
  630. X
  631. X        1) Echo locally.  This is similar to the  duplex  option
  632. X        in  that  it  copies  outgoing characters to the screen.
  633. X        The options are YES and NO.
  634. X
  635. X        2) Expand blank lines.  Should a blank line (LF alone)
  636. X        be expanded to a space and LF?  Some BBS systems use a
  637. X        blank line to signal the end of an  ASCII  upload.   The
  638. X        options are YES and NO.
  639. X
  640. X        3) CR delay.  The delay in milliseconds to be used  when
  641. X        sending a CR.  The menu prompt limits the choice to 0,
  642. X        100, or 150.
  643. X
  644. X        4) Pace output.  Should each character sent be  delayed?
  645. X        Very  old  BBS  systems may require this.  The choice is
  646. X        YES or NO.
  647. X
  648. X        5)  CR  translation.   The  menu  prompt  provides   the
  649. X        following choices for upload translations:
  650. X
  651. X            +o NONE (no translation)
  652. X            +o ADD LF translate CR to CR/LF
  653. X            +o STRIP remove the CR character
  654. X
  655. X        6) LF translation. Same as above except the choices are:
  656. X
  657. X            +o NONE (no translation)
  658. X            +o ADD CR translate LF to CR/LF
  659. X            +o STRIP remove the LF character
  660. X
  661. X        7) Transfer timeout.  The number of seconds to  be  used
  662. X        to determine the end of an ASCII download.  You can halt
  663. X        the transfer before the timer goes off  by  hitting  the
  664. X        <ESC> key.
  665. X
  666. X        8-9) Same as 5) and 6) above, except the translations
  667. X        apply to ASCII downloading.
  668. X
  669. X    4. MAJOR FUNCTIONS
  670. X
  671. X    When Pcomm is invoked without  the  "-f"  command  line  option,
  672. X    you're  placed  in  the  terminal mode with a blank screen and a
  673. X    status line.  However, since Pcomm hasn't yet selected a  serial
  674. X    port  to  use, characters typed at the blank screen are ignored.
  675. X    Normally the first command you'll use is ^A-D to  bring  up  the
  676. X    dialing directory menu.
  677. X
  678. X    4.1 Dialing directory
  679. X
  680. X    To dial another system, you type  ^A-D  to  access  the  dialing
  681. X    directory menu, then enter the entry number at the prompt.
  682. X
  683. X    The entry number could be preceded by a  special  long  distance
  684. X    dialing  code  such as "#5" in lieu of "5" alone.  Long distance
  685. X    codes could contain access numbers such as those  that  MCI  and
  686. X    Sprint require.
  687. X
  688. X    A typical dialing directory will look like this:
  689. X
  690. X    +----------------------------------------------------------------------+
  691. X    |                 D I A L I N G       D I R E C T O R Y                |
  692. X    |----------------------------------------------------------------------|
  693. X    |       Name                  Number       Baud P D S Dpx  Index/TTY   |
  694. X    |  1- Abbey Road        1 (512) 590-6036   2400-N-8-1  F               |
  695. X    |  2- Tel-Med-Com               555-8686   9600-E-7-1  F               |
  696. X    |  3- C Board           1 (619) 722-8724   2400-N-8-1  F               |
  697. X    |  4- Crest             1 (213) 471-2518   2400-N-8-1  F   crest       |
  698. X    |  5- Last Chance       1 (219) 762-8411   2400-E-7-1  F               |
  699. X    |  6- Killer            1 (214) 827-1994   1200-E-7-1  F               |
  700. X    |  7- System A (direct)                   19200-N-8-1  F   tty12       |
  701. X    |  8-                                      1200-E-7-1  F               |
  702. X    |  9-                                      1200-E-7-1  F               |
  703. X    | 10-                                      1200-E-7-1  F               |
  704. X    |                                                                      |
  705. X    |   ==> _    R Revise           M Manual Dialing    Entry to Dial      |
  706. X    |            P LD Codes         D Delete Entry      <CR> Scroll Down   |
  707. X    |            <up>/<down> Page   L Print Entries     <ESC> Exit         |
  708. X    |                                                                      |
  709. X    |   LD Codes Active: @ #                                               |
  710. X    |                                                                      |
  711. X    +----------------------------------------------------------------------+
  712. X
  713. X    The fields of the dialing directory are:
  714. X
  715. X        +o Name.  The name of the remote system.
  716. X
  717. X        +o Number.  The telephone number to the remote system.
  718. X
  719. X    NOTE:  The "(", ")", "-", and  space  characters  are  just  for
  720. X    looks,  and  don't  get  sent  to  the  modem.   To  prevent the
  721. X    stripping of one of these characters, prepend a "\" to it.
  722. X
  723. X        +o Line settings.  The communications settings to be used
  724. X        when dialing that entry.  The range of values are:
  725. X
  726. X            Baud    Parity     Data bits  Stop bits
  727. X            -----    --------   ---------  ---------
  728. X            300    N - none    7    1
  729. X            1200    E - even    8    2
  730. X            2400    O - odd
  731. X            4800
  732. X            9600
  733. X            19200
  734. X
  735. X        +o Duplex.  The duplex mode.  Either "F" for full or  "H"
  736. X        for half.
  737. X
  738. X        +o Index.  The string to be used  to  select  this  entry
  739. X        with  the  "-f" command line option.  This field is also
  740. X        used to specify a particular TTY for the entry.
  741. X
  742. X    NOTE:  On all hard-wired ports, the index field must be  set  to
  743. X    the  name  of  the  port.  For example, if tty12 is a hard-wired
  744. X    port to "System A", then the dialing directory entry for "System
  745. X    A" will have "tty12" in the index field.
  746. X
  747. X    The commands at the dialing directory prompt are:
  748. X
  749. X        R) Revise (or add) a dialing  directory  entry  or  long
  750. X        distance  dialing code.  Prompts you to save the changes
  751. X        to disk.  A typical revise screen would look like this:
  752. X
  753. X    +--------------------------------------------------------------+
  754. X    |                                                              |
  755. X    |   Entry to revise? _          (Entry Number, +,-,@,#)        |
  756. X    |                                                              |
  757. X    +--------------------------------------------------------------+
  758. X
  759. X        If a dialing directory entry is selected, each field  of
  760. X        the  entry  is shown with its current settings.  You can
  761. X        enter a new value, press a carriage return to skip  past
  762. X        a  field,  or  enter a single space character to erase a
  763. X        field.  An <ESC> at any field will abort the command.
  764. X
  765. X        P) Print (display) the long distance dialing codes.
  766. X
  767. X        <up>/<down>) Scroll the dialing directory up or down  10
  768. X        lines.   Use  the  up and down arrow keys to access this
  769. X        feature.
  770. X
  771. X        M) Manual dial.  Prompts you for a phone  number  rather
  772. X        than using a number already in the dialing directory.
  773. X
  774. X        D) Delete an entry or a range of entries.   Prompts  you
  775. X        to save the changes to disk.
  776. X
  777. X        L) Print.  Send the dialing directory to the printer  or
  778. X        a file of your choice.
  779. X
  780. X        1-100) Entry number.  Dial  the  phone  for  that  entry
  781. X        number.
  782. X
  783. X    NOTE:  To access the port directly without dialing  (perhaps  to
  784. X    send  the dial codes yourself), select an empty entry or enter a
  785. X    single space character at phone number prompt of the manual dial
  786. X    option.
  787. X
  788. X        <CR> Carriage return.  Scroll the dialing directory down
  789. X        one line.
  790. X
  791. X    4.2 Redial
  792. X
  793. X    The redial feature is a misnomer; it really is a queuing  system
  794. X    that  allows  Pcomm to dial several numbers in a cycle until one
  795. X    of them answers.
  796. X
  797. X    When you invoke the redial command with  ^A-R,  you're  prompted
  798. X    for  a list of dialing directory numbers.  (You may also prepend
  799. X    a long distance code to the entry number).
  800. X
  801. X    +-- Redial Queue ----------------------------------------------+
  802. X    |                                                              |
  803. X    |   Directory Entry Number(s): _                               |
  804. X    |                                                              |
  805. X    |                  (<CR> for previous numbers)                 |
  806. X    +--------------------------------------------------------------+
  807. X
  808. X    To redial the previous number, press a carriage return alone at
  809. X    the prompt.  An <ESC> aborts this command.
  810. X
  811. X    4.3 Keyboard macros
  812. X
  813. X    Keyboard macros are used as a shortcut  to  send  commonly  used
  814. X    strings  to  the  remote system with only a few keystrokes.  The
  815. X    characters used to identify the macros are  the  shifted  number
  816. X    keys.   For  example,  if the string "hello" was assigned to the
  817. X    "!" key (the shifted number 1 key), then when  you  press  ^A-!,
  818. X    the string "hello" is sent to the remote.
  819. X
  820. X    NOTE:  While a keyboard macro is being sent to the  remote,  the
  821. X    incoming  characters  are  temporarily  suspended.   This  often
  822. X    results in an awkward visual effect.
  823. X
  824. X    To review or edit the  keyboard  macros,  you  type  ^A-M.   The
  825. X    following screen will appear:
  826. X
  827. X        +------------------------------------------------------+
  828. X        |                   Keyboard Macros                    |
  829. X        |------------------------------------------------------|
  830. X        |                                                      |
  831. X        |  ^A-! hello                                          |
  832. X        |  ^A-@                                                |
  833. X        |  ^A-#                                                |
  834. X        |  ^A-$                                                |
  835. X        |  ^A-%                                                |
  836. X        |  ^A-^                                                |
  837. X        |  ^A-&                                                |
  838. X        |  ^A-*                                                |
  839. X        |  ^A-(                                                |
  840. X        |  ^A-)                                                |
  841. X        |                                                      |
  842. X        |  Macro key to revise: _                              |
  843. X        |                                                      |
  844. X        +---------------- Press <ESC> to continue -------------+
  845. X
  846. X    To edit a macro, you type the macro key character  (without  the
  847. X    leading  hot key).  After typing the new string information, you
  848. X    will be prompted to save the changes to disk.  To erase an entry
  849. X    enter a single space character.
  850. X
  851. X    NOTE:  All of the character synonyms described  in  section  3.5
  852. X    are available for use with the keyboard macros.
  853. X
  854. X    4.4 Line settings
  855. X
  856. X    The line settings menu is  invoked  by  ^A-P.   A  typical  line
  857. X    settings menu will look like this:
  858. X
  859. X        +-----------------------------------------------+
  860. X        |                Line Settings                  |
  861. X        |-----------------------------------------------|
  862. X        |                                               |
  863. X        |       Current Settings:  1200,E,7,1           |
  864. X        |                                               |
  865. X        |     1)    300,E,7,1      7)    300,N,8,1      |
  866. X        |     2)   1200,E,7,1      8)   1200,N,8,1      |
  867. X        |     3)   2400,E,7,1      9)   2400,N,8,1      |
  868. X        |     4)   4800,E,7,1     10)   4800,N,8,1      |
  869. X        |     5)   9600,E,7,1     11)   9600,N,8,1      |
  870. X        |     6)  19200,E,7,1     12)  19200,N,8,1      |
  871. X        |                                               |
  872. X        |   Parity       Data Bits       Stop Bits      |
  873. X        |   13) Odd      14) 7 bits      16) 1 bit      |
  874. X        |                15) 8 bits      17) 2 bits     |
  875. X        |                                               |
  876. X        |   18) Save Changes      YOUR CHOICE: _        |
  877. X        |                                               |
  878. X        +------------- Press <ESC> to return -----------+
  879. X
  880. X    While dialing  a  remote,  the  line  settings  in  the  dialing
  881. X    directory  entry  are  automatically  used.   Therefore the line
  882. X    settings menu is used to fine tune the values during a  terminal
  883. X    session or to select the parameters for manual dialing.  You can
  884. X    make the current setting the  default  by  selecting  the  "Save
  885. X    Changes" option.
  886. X
  887. X    The current line settings are also displayed in the status line.
  888. X
  889. X    NOTE:  During file transfers,  certain  parameters  (namely  the
  890. X    data  bits  and parity) will be temporarily changed.  The status
  891. X    line will *not* reflect these temporary promotions.
  892. X
  893. X    4.5 Exit Pcomm
  894. X
  895. X    To exit Pcomm, you type ^A-X.  The phone is hung up (if  a  call
  896. X    was  in  progress),  the  print  and  data  logging features are
  897. X    closed, and the TTY resources are released.
  898. X
  899. X    NOTE:  Pcomm drops the DTR (Data Terminal  Ready)  on  the  port
  900. X    before exiting to Unix.
  901. X
  902. X    4.6 Unix gateway
  903. X
  904. X    To temporarily suspend Pcomm and spawn a Unix  shell,  you  type
  905. X    ^A-4.   To  return  to  Pcomm,  you  exit  the  shell  normally,
  906. X    typically with ^D or "exit".
  907. X
  908. X    NOTE:  The SHELL environmental variable  is  used  to  determine
  909. X    which program to invoke.
  910. X
  911. X    5. UTILITY FUNCTIONS
  912. X
  913. X    The following commands perform secondary functions.
  914. X
  915. X    5.1 Program information
  916. X
  917. X    To display the opening information screen, you type ^A-I.  Press
  918. X    any key to return to the terminal mode.
  919. X
  920. X    5.2 Setup screen
  921. X
  922. X    The setup screens are described in detail in section 3  of  this
  923. X    manual.
  924. X
  925. X    5.3 Change directory
  926. X
  927. X    To change the  current  working  directory  while  still  inside
  928. X    Pcomm,  you  type  ^A-B.  A screen similar to the following will
  929. X    appear:
  930. X
  931. X    +-- Change directory ------------------------------------------+
  932. X    |                                                              |
  933. X    |   Current directory: /usr/egray                              |
  934. X    |   New directory: _                                           |
  935. X    |                                                              |
  936. X    +--------------------------------------------------------------+
  937. X
  938. X    Abbreviations known to the shell are  acceptable;  for  example,
  939. X    the  "~"  character  will be translated to the home directory in
  940. X    the csh or ksh shell.
  941. X
  942. X    5.4 Clear screen
  943. X
  944. X    To clear the local screen and home the cursor, you type ^A-C.
  945. X
  946. X    NOTE:  The remote system may not  "know"  the  screen  has  been
  947. X    cleared,  and  may  make  assumptions  about the screen that are
  948. X    incorrect.
  949. X
  950. X    5.5 Toggle duplex
  951. X
  952. X    The ^A-E command changes the duplex mode from FULL to  HALF,  or
  953. X    from  HALF  to  FULL.   The status line shows the current duplex
  954. X    mode.
  955. X
  956. X    5.6 Hang up the phone
  957. X
  958. X    To hang up the phone, you type ^A-H.  The  word  "disconnecting"
  959. X    will briefly show in the status line.
  960. X
  961. X    NOTE:  Pcomm does not drop the DTR (Data Terminal Ready)  during
  962. X    a  hang  up.   Therefore,  this  would  have no effect on direct
  963. X    lines.
  964. X
  965. X    5.7 Printer logging
  966. X
  967. X    The ^A-L command toggles the printer logging  on  or  off.   The
  968. X    current printer status is displayed in the status line.
  969. X
  970. X    NOTE:  Since all printing goes to the normal  Unix  print  spool
  971. X    program,  the  characters  will not print on the printer as they
  972. X    appear on the screen.  The printing will actually begin when the
  973. X    printer  logging  is  turned *off* and the complete print job is
  974. X    sent to the spool.
  975. X
  976. X    NOTE:  Due to a technical limitation of Pcomm, characters  typed
  977. X    while in the half duplex mode will not appear in the print log.
  978. X
  979. X    5.8 Toggle CR - CR/LF
  980. X
  981. X    The  ^A-3  command  toggles  the   incoming   line   termination
  982. X    characters  between  CR  and CR/LF.  The status line shows
  983. X    the current settings (in the next to the last field).
  984. X
  985. X    5.9 Break
  986. X
  987. X    The ^A-7 command sends a modem break to the remote system.   The
  988. X    word "break" is (very) briefly displayed on the status line.
  989. X
  990. X    NOTE:  This not the same as the break key on  the  keyboard  (we
  991. X    don't  want to send a break to the local system, we want to send
  992. X    it to the *remote*).
  993. X
  994. X    6. FILE FUNCTIONS
  995. X
  996. X    One of  the  most  important  features  of  a  telecommunication
  997. X    program  is  the  ability to transfer files.  The following file
  998. X    transfer protocols are implemented:
  999. X
  1000. X    protocol        packet          error           multiple
  1001. X    name            size            detection       files?
  1002. X    ---------       --------        ------------    --------
  1003. X
  1004. X    xmodem          128             checksum/CRC    no
  1005. X    xmodem-1k       128/1024        checksum/CRC    no
  1006. X    modem7          128             checksum        yes *1
  1007. X    ymodem          128/1024        CRC             yes *2
  1008. X    ymodem-g        128/1024        none *3         yes
  1009. X    ASCII           none            none            no
  1010. X    (external)    ?        ?        ?
  1011. X
  1012. X    Notes:  1 CP/M style file name
  1013. X        2 MSDOS style file name and file size
  1014. X        3 Not needed!
  1015. X
  1016. X    The external  "protocol"  is  really  a  method  of  running  an
  1017. X    external  program from Pcomm to accomplish a file transfer.  The
  1018. X    most common use of this feature would be to run Kermit or  Chuck
  1019. X    Forsberg's Zmodem (sz/rz/dsz) program.
  1020. X
  1021. X    NOTE: The external protocol feature can also be used (misused?)
  1022. X    to pipe the output of a Unix command to the remote.
  1023. X
  1024. X    NOTE: The protocols that send file name information, convert the
  1025. X    Unix style file name to fit the MSDOS name restrictions.
  1026. X
  1027. X    6.1 Send files
  1028. X
  1029. X    To send a file to the remote, you'll first have to instruct  the
  1030. X    remote system to receive the file, then type ^A-"up arrow".  The
  1031. X    following screen will appear:
  1032. X
  1033. X                    +----- Upload -----+
  1034. X                    |                  |
  1035. X                    |  1) xmodem       |
  1036. X                    |  2) xmodem-1k    |
  1037. X                    |  3) modem7       |
  1038. X                    |  4) ymodem       |
  1039. X                    |  5) ymodem-g     |
  1040. X                    |  6) ASCII        |
  1041. X                    |  7) (external)   |
  1042. X                    |                  |
  1043. X                    |  <ESC> to Abort  |
  1044. X                    |                  |
  1045. X                    |  Protocol: _     |
  1046. X                    +------------------+
  1047. X
  1048. X    You then select the type of protocol at the prompt, and  another
  1049. X    window similar to this will appear:
  1050. X
  1051. X    +-- Send xmodem -----------------------------------------------+
  1052. X    |                                                              |
  1053. X    |   Enter filename: _                                          |
  1054. X    |                                                              |
  1055. X    +--------------------------------------------------------------+
  1056. X
  1057. X    Now you type in the file name  or  names  you'd  like  to  send.
  1058. X    Wildcards known to the shell are acceptable.
  1059. X
  1060. X    Now the file transfer actually begins.  A screen similar to  the
  1061. X    following is displayed during the transfer:
  1062. X
  1063. X                +-------------- Uploading -------------+
  1064. X                |                                      |
  1065. X                |            Protocol: xmodem          |
  1066. X                |           File name: main.c          |
  1067. X                |           File size: 4420            |
  1068. X                |  Error check method: CRC             |
  1069. X                |   Est transfer time: 0:00:50         |
  1070. X                |         Block count: 5               |
  1071. X                |    Percent complete: 11.2%           |
  1072. X                |   Bytes transferred: 640             |
  1073. X                |   Errors this block: 0               |
  1074. X                |   Total error count: 0               |
  1075. X                |        Last message: NONE            |
  1076. X                |                                      |
  1077. X                +------- Press <ESC> to abort ---------+
  1078. X
  1079. X    As  the  transfer  progresses,  the  "block   count",   "percent
  1080. X    complete",  and  "bytes transferred" fields will be continuously
  1081. X    updated.  If errors occur the "errors  this  block"  and  "total
  1082. X    error count" fields will be updated and the "last message" field
  1083. X    will contain a message about the error.
  1084. X
  1085. X    At the end of the transfer, Pcomm will beep and  return  to  the
  1086. X    terminal  mode.   If  an  error  occurred  and  the transfer was
  1087. X    aborted, you will  be  prompted  to  acknowledge  the  error  by
  1088. X    pressing a key before returning to the terminal mode.
  1089. X
  1090. X    6.2 Receive files
  1091. X
  1092. X    To receive a file (or group of  files)  from  a  remote  system,
  1093. X    you'll  have  to  first  instruct  the  remote system, then type
  1094. X    ^A-"down arrow".  Receiving a file  is  basically  the  same  as
  1095. X    sending a file.
  1096. X
  1097. X    NOTE:  Some systems  do  not  pad  the  end  of  the  file  with
  1098. X    control-Z's  and  therefore  files  might  grow  in  length when
  1099. X    received.
  1100. X
  1101. X    NOTE:  Due  to  a  technical  limitation  of  Pcomm,  characters
  1102. X    received  during  an  ASCII  download  will  not reappear on the
  1103. X    screen when you return to the terminal mode.
  1104. X
  1105. X    6.3 Pass thru mode
  1106. X
  1107. X    The pass through mode is used when you have two or more machines
  1108. X    in  a  communications  daisy chain.  The following diagram shows
  1109. X    an example of this type of arrangement:
  1110. X
  1111. X        +---------+          +---------+          +---------+
  1112. X        | IBM PC  |          | Unix    |          | IBM PC  |
  1113. X        | running | -------> | running | -------> | running |
  1114. X        | ProComm | <------- | Pcomm   | <------- | RBBS    |
  1115. X        +---------+          +---------+          +---------+
  1116. X
  1117. X    If a file is to be transferred from  the  last  machine  to  the
  1118. X    first   machine,  the  middle  machine  must  appear  completely
  1119. X    transparent.  The middle machine must "forward the data" without
  1120. X    altering it in any way.  The pass through mode "expires" after a
  1121. X    designated period of of inactivity,  after  which  the  user  is
  1122. X    returned to the terminal mode.
  1123. X
  1124. X    To access the pass through mode, you type ^A-T.  The following
  1125. X    screen will appear:
  1126. X
  1127. X    +-- Pass Thru Mode --------------------------------------------+
  1128. X    |                                                              |
  1129. X    |   Enter the expiration time (5-60 sec) : _                   |
  1130. X    |                                                              |
  1131. X    +--------------------------------------------------------------+
  1132. X
  1133. X    NOTE:  While in the pass through mode, no Pcomm command  to  the
  1134. X    middle  machine  will  be honored.  Therefore, the *only* way to
  1135. X    exit this mode is to not type anything on the keyboard until the
  1136. X    expiration period has elapsed.
  1137. X
  1138. X    NOTE:  The baud rates to and from the middle machine need not be
  1139. X    the same, however the slowest speed determines the overall speed
  1140. X    of the transfer (the weakest link in the chain).
  1141. X
  1142. X    6.4 Directory
  1143. X
  1144. X    To obtain a listing of a directory on  the  local  system  while
  1145. X    still  running  Pcomm, you type ^A-F.  The following screen will
  1146. X    appear:
  1147. X
  1148. X    +-- List Directory --------------------------------------------+
  1149. X    |                                                              |
  1150. X    |   Current directory: /usr/egray                              |
  1151. X    |   File spec (wildcards allowed): _                           |
  1152. X    |                                                              |
  1153. X    +--------------------------------------------------------------+
  1154. X
  1155. X    Abbreviations know to the shell are valid.
  1156. X
  1157. X    NOTE:  Since we're really doing a popen() to the  "ls"  command,
  1158. X    additional command line options are also valid.
  1159. X
  1160. X    6.5 Screen dump
  1161. X
  1162. X    To dump the contents of the current screen  (minus  any  windows
  1163. X    showing)  you type ^A-G.  The contents of the screen are written
  1164. X    to the file specified in the general setup for this purpose.  If
  1165. X    the file already exists, the screen contents are appended to the
  1166. X    file.  The message "screen dump"  will  briefly  appear  in  the
  1167. X    status line.
  1168. X
  1169. X    6.6 Start data log
  1170. X
  1171. X    To start the data logging, or change  the  file  used  for  data
  1172. X    logging, you type ^A-1.  The following screen will appear:
  1173. X
  1174. X    +-- Start Data Logging ----------------------------------------+
  1175. X    |                                                              |
  1176. X    |   Default log file: pcomm.log                                |
  1177. X    |   New log file: _                                            |
  1178. X    |                                                              |
  1179. X    +--------------------------------------------------------------+
  1180. X
  1181. X    To keep the default file, just press a carriage  return  at  the
  1182. X    prompt,  otherwise,  enter a new file name.  If the file already
  1183. X    exits, the new data is appended to the file.
  1184. X
  1185. X    The status of the logging is shown in the status line.
  1186. X
  1187. X    NOTE:  Due to a technical limitation of Pcomm, characters  typed
  1188. X    while in the half duplex mode will not appear in the log file.
  1189. X
  1190. X    6.7 Toggle logging
  1191. X
  1192. X    To temporarily suspend data logging or to start it again without
  1193. X    being prompted for the file name, you type ^A-2.
  1194. X
  1195. X    7. DIALING WINDOW
  1196. X
  1197. X    While Pcomm is dialing another system, a screen similar  to  the
  1198. X    following is shown:
  1199. X
  1200. X    +----------------------------------------------------------------------+
  1201. X    |                    D I A L I N G      W I N D O W                    |
  1202. X    |----------------------------------------------------------------------|
  1203. X    |                                                                      |
  1204. X    |                        System name: C Board                          |
  1205. X    |                        Pass number: 1                                |
  1206. X    |               Elapse time this try: 4                                |
  1207. X    |              Time at start of dial: 14:53:36                         |
  1208. X    |          Time at start of this try: 14:53:37                         |
  1209. X    |                 Connect delay time: 35                               |
  1210. X    |                  Redial delay time: 5                                |
  1211. X    |                          Index/TTY:                                  |
  1212. X    |                 Result of last try:                                  |
  1213. X    |                                                                      |
  1214. X    |   <SPACE>: Recycle    <DEL>: Remove from queue    E: Change delays   |
  1215. X    |                                                                      |
  1216. X    +------------------------- Press <ESC> to abort -----------------------+
  1217. X
  1218. X    The options available during the dialing window are:
  1219. X
  1220. X        SPACE) Press the space bar to stop the  dialing  of  the
  1221. X        current  entry and go on to the next entry in the queue.
  1222. X        If there is only one  entry  in  the  queue,  then  that
  1223. X        number is redialed.
  1224. X
  1225. X        DEL) Press the DEL key to remove the current number from
  1226. X        the queue.
  1227. X
  1228. X        E) Press the letter "E"  to  change  the  connect  delay
  1229. X        time,  or  the  redial  delay  time  (the  pause between
  1230. X        dailing attempts).  You will be  prompted  to  save  the
  1231. X        changes to disk.
  1232. X
  1233. X    NOTE:  While the DEL and E  options  are  being  processed,  the
  1234. X    dialing is temporarily suspended.
  1235. X
  1236. X    Appendix A
  1237. X
  1238. X              Typical Modem Configuration
  1239. X
  1240. X    I can't begin to describe how to configure every modem  to  work
  1241. X    with  Pcomm.   There  are  however, several guidelines that will
  1242. X    apply to virtually any modem.
  1243. X
  1244. X        1) Pcomm  doesn't  care  about  the  DCD  (Data  Carrier
  1245. X        Detect) settings of the modem.
  1246. X
  1247. X        2) It would be nice (but not essential) if the  loss  of
  1248. X        the  DTR  (Data Terminal Ready) caused the modem to hang
  1249. X        up.
  1250. X
  1251. X        3) Pcomm doesn't care if commands are echoed back by the
  1252. X        modem  (it  might save a few milliseconds if echoing was
  1253. X        turned off).
  1254. X
  1255. X        4) Some sort of  result  codes  are  required.   Numeric
  1256. X        result  codes are ok...  but since they are displayed on
  1257. X        the screen, word result codes will make more sense.
  1258. X
  1259. X        5) If the modem can return different  result  codes  for
  1260. X        each  baud  rate at which it answers, then by all means,
  1261. X        use them.
  1262. X
  1263. X        6) Anything that is  returned  by  the  modem,  but  not
  1264. X        listed in the modem setup, is ignored.
  1265. X
  1266. X        7) Systems running uugetty (the  bi-directional  version
  1267. X        of  getty that comes with HDB uucp) should include extra
  1268. X        commands in the initialization  string  to  assure  that
  1269. X        uugetty  switches  to  its  dial  out  mode.   Normally,
  1270. X        "AT!~AT!~" causes enough dialogue to  force  uugetty  to
  1271. X        release the line.
  1272. X
  1273. X    For example,  a  2400  baud  Hayes  compatible  modem  might  be
  1274. X    configured with the following command:
  1275. X
  1276. X        AT S7=45 S11=70 E0 Q0 V1 X4 &D2
  1277. X
  1278. X            AT    Hayes attention command
  1279. X            S7=45    Wait 45 seconds for an answer
  1280. X            S11=70    70 ms touch tone dialing
  1281. X            E0    Don't echo commands (not essential)
  1282. X            Q0    Turn result codes on
  1283. X            V1    Return word result codes
  1284. X            X4    Use as many result codes as you've got
  1285. X            &D2    Hang up when DTR is lost (nice to have)
  1286. X
  1287. X
  1288. X    Appendix B
  1289. X
  1290. X                 AT&T Unix PC 7300/3b1
  1291. X                  Dial Codes
  1292. X
  1293. X    The dialing codes used by the  OBM  (On  Board  Modem)  are  not
  1294. X    straight-forward.   The  modem setup, as distributed, looks like
  1295. X    this:
  1296. X
  1297. X    -------------------------- Modem Setup -------------------------
  1298. X
  1299. X         1) Modem name (1 of 2) ... OBM
  1300. X         2) Modem init string .....
  1301. X         3) Dialing command ....... %
  1302. X         4) Dialing cmd suffix .... @
  1303. X         5) Hang up string ........
  1304. X         6) Auto baud detect ...... N
  1305. X         7) 300 baud connect ...... CONNECT
  1306. X         8) 1200 baud connect ..... CONNECT
  1307. X         9) 2400 baud connect .....
  1308. X        10) 4800 baud connect .....
  1309. X        11) 9600 baud connect .....
  1310. X        12) 19200 baud connect ....
  1311. X        13) No connect string 1 ...
  1312. X        14) No connect string 2 ...
  1313. X        15) No connect string 3 ...
  1314. X        16) No connect string 4 ...
  1315. X
  1316. X    ----------------------------------------------------------------
  1317. X    OPTION ==> _                               Press <ESC> to return
  1318. X
  1319. X    The relevant fields of the modem setup are:
  1320. X
  1321. X        1) Modem name.  This must be "OBM".
  1322. X
  1323. X    NOTE:  Pcomm uses the modem name as a flag  to  determine  which
  1324. X    dialing  method  to  use.  The string "OBM" is a "reserved word"
  1325. X    that Pcomm uses to switch to  the  AT&T Unix PC 7300/3b1 dialing
  1326. X    method.
  1327. X
  1328. X        3) Dialing command.  This should be "%" for  touch  tone
  1329. X        dialing or "^" for pulse dialing.
  1330. X
  1331. X        4) Dialing cmd suffix.  This must be the "@" character.
  1332. X
  1333. X        6) Auto baud detect.  The OBM cannot  use  the auto baud
  1334. X        detect feature.
  1335. X
  1336. X        7-8) Connect strings.  Although the OBM doesn't actually
  1337. X        return any result codes, these fake fields are required.
  1338. X
  1339. X    Additional OBM dialing codes from the phone(7) manual:
  1340. X
  1341. X        "~"    wait for next dial tone
  1342. X        ","    pause 2 seconds
  1343. X        ":"    pause 10 seconds
  1344. X        "&"    perform a hookflash
  1345. X        "%"    begin tone dialing
  1346. X        "^"    begin pulse dialing
  1347. X
  1348. X    These codes can be inserted into the phone  number  string,  for
  1349. X    example:
  1350. X
  1351. X        555-1234~56    dial 555-1234, wait for tone, dial 56
  1352. X        9,555-1234    dial 9, wait 2 seconds, dial 555-1234
  1353. X        %555^1234    dial 555 using tone, 1234 using pulse
  1354. X
  1355. X    NOTE:  The  dialing  codes  for  the  OBM  are  not  subject  to
  1356. X    character  synonym translations, therefore the "%", "^", and "~"
  1357. X    characters do NOT have to be preceded by the  "\"  character  to
  1358. X    remove their special meaning.
  1359. X
  1360. X    Appendix C
  1361. X
  1362. X               Using Telebit Trailblazers
  1363. X
  1364. X    The Telebit Trailblazer modem is probably representative of  the
  1365. X    newer   high   speed  intelligent  modems  available  today  and
  1366. X    therefore warrants a more detailed discussion.
  1367. X
  1368. X    1) Locked interface speed
  1369. X
  1370. X        Trailblazers have  the  ability  to  maintain  a  locked
  1371. X        interface  speed with the computer without regard to the
  1372. X        connected baud rate.  For example, some people  find  it
  1373. X        necessary  to  lock the interface speed at 9600 baud (or
  1374. X        some other speed) for normal operations.  However, Pcomm
  1375. X        assumes the interface speed is the same as the connected
  1376. X        baud rate.
  1377. X
  1378. X        The "init speed" field of the TTY database  was  created
  1379. X        to solve this problem.  If this value is non-zero, Pcomm
  1380. X        will send the initialization string to the modem at this
  1381. X        baud  rate.   Normally, Pcomm would use the baud rate in
  1382. X        the dialing directory to send the init string.
  1383. X
  1384. X        The init string would now contain the  codes  to  unlock
  1385. X        the  interface,  enter the autobaud mode on receipt of a
  1386. X        break, and arrange for the loss of the DTR to return the
  1387. X        modem   to  its  previous  locked  state.   For  Telebit
  1388. X        Trailblazers this would be S66=0, S51=255, and S52=2.
  1389. X
  1390. X    2) Multiple setups
  1391. X
  1392. X        Users of Trailblazers often require  a  different  "init
  1393. X        string"  or  "dial  string" depending on the target baud
  1394. X        rate.  For example, the init strings for 9600 and  19200
  1395. X        baud may contain the command "S50=255" (to  wait for the
  1396. X        Telebit PEP tones) whereas the slower init strings would
  1397. X        contain "S50=0".
  1398. X
  1399. X        This problem is solved by creating an  additional  modem
  1400. X        entry  in  the  modem  database.  For example, you could
  1401. X        have an entry called "TELEBIT" for  baud  rates  in  the
  1402. X        range    of    300-2400   and   another   entry   called
  1403. X        "FAST_TELEBIT"  for  baud  rates   in   the   range   of
  1404. X        9600-19200.
  1405. X
  1406. X        Pcomm uses the connect strings to determine if the modem
  1407. X        can   handle  the  requested  baud  rate.   So,  if  the
  1408. X        "TELEBIT" entry had connect strings for 300,  1200,  and
  1409. X        2400  baud  it  would  be selected only if the requested
  1410. X        baud rate was in that range.  Likewise, the FAST_TELEBIT
  1411. X        would have connect strings only for 9600 and 19200 baud.
  1412. X
  1413. X    3) Baud rate synchronization
  1414. X
  1415. X        In contrast to the Hayes  2400  modem,  the  Trailblazer
  1416. X        does  not  immediately  synchronize with the serial port
  1417. X        when the baud rate is changed during the modem's command
  1418. X        mode.
  1419. X
  1420. X        To solve this problem, the init string and  dial  string
  1421. X        should contain the break character synonym followed by a
  1422. X        sufficient  number  of  A's  to  allow  the   modem   to
  1423. X        synchronize.   The default character synonym for a modem
  1424. X        break is the "%".
  1425. X
  1426. X    4) Sample TTY database
  1427. X
  1428. X        The following is the contents of the sample TTY database:
  1429. X
  1430. X        TTY name    Modem name    Init speed
  1431. X
  1432. X        1) tty10    HAYES           0
  1433. X        2) tty11    HAYES           0
  1434. X        3) tty12    DIRECT           0
  1435. X        4) tty13    TELEBIT           0
  1436. X        5) tty13    FAST_TELEBIT       0
  1437. X
  1438. X        Notice that entries 4 and 5 share the same TTY.
  1439. X
  1440. X    NOTE:  The examples assume the  modem  interface  speed  is  not
  1441. X    locked.  See paragraph 1 for additional codes to be added to the
  1442. X    init string if the lock interface feature is used.
  1443. X
  1444. X    5) Sample modem database entry for TELEBIT
  1445. X
  1446. X        The third entry in the sample modem database is for  the
  1447. X        Telebit Trailblazer designated for use at slow speeds.
  1448. X
  1449. X        1) Modem name (3 of 4) .... TELEBIT
  1450. X        2) Modem init string ...... %AAAAAATS50=0S2=43S95=0M1!
  1451. X        3) Dialing command ........ %AAAAAATDTW
  1452. X        4) Dialing cmd suffix ..... !
  1453. X        5) Hang up string ......... ~~+++~~ATH0!
  1454. X        6) Auto baud detect ....... Y
  1455. X        7) 300 baud connect ....... CONNECT 300
  1456. X        8) 1200 baud connect ...... CONNECT 1200
  1457. X        9) 2400 baud connect ...... CONNECT 2400
  1458. X        10) 4800 baud connect .....
  1459. X        11) 9600 baud connect .....
  1460. X        12) 19200 baud connect ....
  1461. X        13) No connect string 1 ... BUSY
  1462. X        14) No connect string 2 ... ERROR
  1463. X        15) No connect string 3 ... NO CARRIER
  1464. X        16) No connect string 4 ...
  1465. X
  1466. X    6) Sample modem database entry for FAST_TELEBIT
  1467. X
  1468. X        The 4th entry is for the Telebit Trailblazer  designated
  1469. X        for use at higher speeds.
  1470. X
  1471. X        1) Modem name (4 of 4) .... FAST_TELEBIT
  1472. X        2) Modem init string ...... %AAAAAATS50=255S2=43S95=0M1!
  1473. X        3) Dialing command ........ %AAAAAATDTW
  1474. X        4) Dialing cmd suffix ..... !
  1475. X        5) Hang up string ......... ~~+++~~ATH0!
  1476. X        6) Auto baud detect ....... N
  1477. X        7) 300 baud connect .......
  1478. X        8) 1200 baud connect ......
  1479. X        9) 2400 baud connect ......
  1480. X        10) 4800 baud connect .....
  1481. X        11) 9600 baud connect ..... CONNECT
  1482. X        12) 19200 baud connect .... CONNECT
  1483. X        13) No connect string 1 ... BUSY
  1484. X        14) No connect string 2 ... ERROR
  1485. X        15) No connect string 3 ... NO CARRIER
  1486. X        16) No connect string 4 ...
  1487. echo shar: "46 control characters may be missing from 'Doc'"
  1488. SHAR_EOF
  1489. if test 53982 -ne "`wc -c < 'Doc'`"
  1490. then
  1491.     echo shar: "error transmitting 'Doc'" '(should have been 53982 characters)'
  1492. fi
  1493. fi
  1494. exit 0
  1495. #    End of shell archive
  1496.  
  1497. -- 
  1498. Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.
  1499.